// publicPage/
let overviewPageR = {
  path: "/HomePage",
  name: "HomePage",
  component: r =>
    require.ensure([], () => r(require("comMain/AsideT")), "AsideT"),
  meta: {
    name: "HomePage",
    childrenSoft: false,
    children: []
  },
  redirect: "/overview",
  children: [
    {
      path: "/overview",
      name: "overview",
      component: r =>
        require.ensure(
          [],
          () => r(require("publicPage/overview")),
          "overviewPage"
        )
    }
  ]
};

const decorateR = {
  path: "/decorate",
  name: "decorate",
  component: r =>
    require.ensure([], () => r(require("comMain/AsideT")), "AsideT"),
  meta: {
    name: "decorate",
    childrenSoft: false,
    children: []
  },
  redirect: "/decorate/edits",
  children: [
    {
      path: "/decorate/edits",
      name: "decorateEdits",
      component: r =>
        require.ensure(
          [],
          () => r(require("publicPage/decorate/index.vue")),
          "decorate"
        )
    }
  ]
};

let marketR = {
  path: "/market",
  name: "market",
  component: r =>
    require.ensure([], () => r(require("comMain/AsideT")), "AsideT"),
  meta: {
    name: "users",
    childrenSoft: true,
    children: [
      {
        title: "营销应用",
        idx: "1",
        children: [
          {
            rtName: "marketBoard",
            rtTo: "/market/board",
            rtTitle: "营销应用"
          }
        ]
      }
    ]
  },
  redirect: "/market/board",
  children: [
    {
      path: "/market/board",
      name: "marketBoard",
      component: r =>
        require.ensure(
          [],
          () => r(require("publicPage/market/MarketBoard")),
          "market"
        )
    }
  ]
};

const articleR = {
  path: "/article",
  name: "article",
  component: r =>
    require.ensure([], () => r(require("comMain/AsideT")), "AsideT"),
  meta: {
    name: "article",
    childrenSoft: true,
    children: [
      {
        title: "文章",
        idx: "1",
        children: [
          {
            rtName: "articleList",
            rtTo: "/article/list",
            rtTitle: "文章列表"
          }
        ]
      },
      {
        title: "设置",
        idx: "2",
        children: [
          {
            rtName: "articleSet",
            rtTo: "/article/set",
            rtTitle: "文章设置"
          }
        ]
      }
    ]
  },
  redirect: "/article/list",
  children: [
    {
      path: "/article/list",
      name: "articleList",
      component: r =>
        require.ensure(
          [],
          () => r(require("publicPage/market/article/list")),
          "article"
        )
    },
    {
      path: "/article/set",
      name: "articleSet",
      component: r =>
        require.ensure(
          [],
          () => r(require("publicPage/market/article/set")),
          "article"
        )
    }
  ]
};

const wifiR = {
  path: "/wifi",
  name: "wifi",
  component: r =>
    require.ensure([], () => r(require("comMain/AsideT")), "AsideT"),
  meta: {
    name: "wifi",
    childrenSoft: true,
    children: [
      {
        title: "wifi",
        idx: "1",
        children: [
          {
            rtName: "wifiList",
            rtTo: "/wifi/list",
            rtTitle: "wifi列表"
          }
        ]
      }
    ]
  },
  redirect: "/wifi/list",
  children: [
    {
      path: "/wifi/list",
      name: "wifiList",
      component: r =>
        require.ensure(
          [],
          () => r(require("publicPage/market/wifi/list")),
          "wifi"
        )
    }
  ]
};

const printerSetR = {
  path: "/printerSet",
  name: "printerSet",
  component: r =>
    require.ensure([], () => r(require("comMain/AsideT")), "AsideT"),
  meta: {
    name: "printerSet",
    childrenSoft: true,
    children: [
      {
        title: "打印机",
        idx: "1",
        children: [
          {
            rtName: "printerSetLsit",
            rtTo: "/printerSet/list",
            rtTitle: "设置"
          }
        ]
      }
    ]
  },
  redirect: "/printerSet/list",
  children: [
    {
      path: "/printerSet/list",
      name: "printerSetLsit",
      component: r =>
        require.ensure(
          [],
          () => r(require("publicPage/market/printerSet/list")),
          "printerSet"
        )
    }
  ]
};

const videoR = {
  path: "/video",
  name: "video",
  component: r =>
    require.ensure([], () => r(require("comMain/AsideT")), "AsideT"),
  meta: {
    name: "video",
    childrenSoft: true,
    children: [
      {
        title: "视频",
        idx: "1",
        children: [
          {
            rtName: "videoList",
            rtTo: "/video/list",
            rtTitle: "视频社区"
          }
        ]
      }
    ]
  },
  redirect: "/video/list",
  children: [
    {
      path: "/video/list",
      name: "videoList",
      component: r =>
        require.ensure(
          [],
          () => r(require("publicPage/market/video/list")),
          "video"
        )
    }
  ]
};

const smashEggR = {
  path: "/smashEgg",
  name: "smashEgg",
  component: r =>
    require.ensure([], () => r(require("comMain/AsideT")), "AsideT"),
  meta: {
    name: "smashEgg",
    childrenSoft: true,
    children: [
      {
        title: "砸金蛋",
        idx: "1",
        children: [
          {
            rtName: "smashEggList",
            rtTo: "/smashEgg/list",
            rtTitle: "砸金蛋"
          }
        ]
      }
    ]
  },
  redirect: "/smashEgg/list",
  children: [
    {
      path: "/smashEgg/list",
      name: "smashEggList",
      component: r =>
        require.ensure(
          [],
          () => r(require("publicPage/market/smashEgg/list")),
          "smashEgg"
        )
    }
  ]
};

const spellGroupR = {
  path: "/spellGroup",
  name: "spellGroup",
  component: r =>
    require.ensure([], () => r(require("comMain/AsideT")), "AsideT"),
  meta: {
    name: "spellGroup",
    childrenSoft: true,
    children: [
      {
        title: "拼团",
        idx: "1",
        children: [
          {
            rtName: "spellGroupList",
            rtTo: "/spellGroup/list",
            rtTitle: "拼团列表"
          }
        ]
      }
    ]
  },
  redirect: "/spellGroup/list",
  children: [
    {
      path: "/spellGroup/list",
      name: "spellGroupList",
      component: r =>
        require.ensure(
          [],
          () => r(require("publicPage/market/spellGroup/list")),
          "spellGroup"
        )
    }
  ]
};

const limitR = {
  path: "/limit",
  name: "limit",
  component: r =>
    require.ensure([], () => r(require("comMain/AsideT")), "AsideT"),
  meta: {
    name: "limit",
    childrenSoft: true,
    children: [
      {
        title: "限时折扣",
        idx: "1",
        children: [
          {
            rtName: "limitList",
            rtTo: "/limit/list",
            rtTitle: "限时折扣"
          }
        ]
      }
    ]
  },
  redirect: "/limit/list",
  children: [
    {
      path: "/limit/list",
      name: "limitList",
      component: r =>
        require.ensure(
          [],
          () => r(require("publicPage/market/limit/list")),
          "limit"
        )
    },
    {
      path: "/activity",
      name: "activity",
      component: r =>
        require.ensure(
          [],
          () => r(require("publicPage/market/limit/activity")),
          "activity"
        )
    },
    {
      path: "/shopmanage",
      name: "shopmanage",
      component: r =>
        require.ensure(
          [],
          () => r(require("publicPage/market/limit/shopmanage")),
          "shopmanage"
        )
    },
    {
      path: "/addshop",
      name: "addshop",
      component: r =>
        require.ensure(
          [],
          () => r(require("publicPage/market/limit/addshop")),
          "activity"
        )
    },
    {
      path: "/bianji",
      name: "bianji",
      component: r =>
        require.ensure(
          [],
          () => r(require("publicPage/market/limit/bianji")),
          "bianji"
        )
    }
  ]
};

const distributionR = {
  path: "/distribution",
  name: "distribution",
  component: r =>
    require.ensure([], () => r(require("comMain/AsideT")), "AsideT"),
  meta: {
    name: "distribution",
    childrenSoft: true,
    children: [
      {
        title: "分销员",
        idx: "1",
        children: [
          {
            rtName: "distributionUserList",
            rtTo: "/distribution/list/user",
            rtTitle: "用户分销员"
          },
          {
            rtName: "distributionInternalList",
            rtTo: "/distribution/list/internal",
            rtTitle: "内部分销员"
          }
        ]
      },
      {
        title: "商品",
        idx: "2",
        children: [
          {
            rtName: "distributionShopList",
            rtTo: "/distribution/shop/list",
            rtTitle: "商品设置"
          }
        ]
      },
      {
        title: "设置",
        idx: "3",
        children: [
          {
            rtName: "distributionSetDisA",
            rtTo: "/distribution/set/disASet",
            rtTitle: "分销员设置"
          },
          {
            rtName: "distributionSetDisB",
            rtTo: "/distribution/set/disBSet",
            rtTitle: "分佣设置"
          }
        ]
      },
      {
        title: "订单",
        idx: "4",
        children: [
          {
            rtName: "distributionOrderUser",
            rtTo: "/distribution/order/user",
            rtTitle: "用户分销员"
          },
          {
            rtName: "distributionOrderInternal",
            rtTo: "/distribution/order/internal",
            rtTitle: "内部分销员"
          }
        ]
      },
      {
        title: "结算/提现",
        idx: "5",
        children: [
          {
            rtName: "distributionMoneySettlement",
            rtTo: "/distribution/money/settlement",
            rtTitle: "结算订单"
          },
          {
            rtName: "distributionMoneyWithdrawal",
            rtTo: "/distribution/money/withdrawal",
            rtTitle: "提现订单"
          }
        ]
      }
    ]
  },
  redirect: "/distribution/list/user",
  children: [
    {
      path: "/distribution/list/user",
      name: "distributionUserList",
      component: r =>
        require.ensure(
          [],
          () => r(require("publicPage/market/distribution/list/user")),
          "distribution"
        )
    },
    {
      path: "/distribution/list/internal",
      name: "distributionInternalList",
      component: r =>
        require.ensure(
          [],
          () => r(require("publicPage/market/distribution/list/internal")),
          "distribution"
        )
    },

    {
      path: "/distribution/shop/list",
      name: "distributionShopList",
      component: r =>
        require.ensure(
          [],
          () => r(require("publicPage/market/distribution/shopList")),
          "distribution"
        )
    },
    {
      path: "/distribution/set/disASet",
      name: "distributionSetDisA",
      component: r =>
        require.ensure(
          [],
          () => r(require("publicPage/market/distribution/set/disASet")),
          "distribution"
        )
    },
    {
      path: "/distribution/set/disBSet",
      name: "distributionSetDisB",
      component: r =>
        require.ensure(
          [],
          () => r(require("publicPage/market/distribution/set/disBSet")),
          "distribution"
        )
    },

    {
      path: "/distribution/order/user",
      name: "distributionOrderUser",
      component: r =>
        require.ensure(
          [],
          () => r(require("publicPage/market/distribution/order/user")),
          "distribution"
        )
    },
    {
      path: "/distribution/order/internal",
      name: "distributionOrderInternal",
      component: r =>
        require.ensure(
          [],
          () => r(require("publicPage/market/distribution/order/internal")),
          "distribution"
        )
    },

    {
      path: "/distribution/money/settlement",
      name: "distributionMoneySettlement",
      component: r =>
        require.ensure(
          [],
          () => r(require("publicPage/market/distribution/money/settlement")),
          "distribution"
        )
    },
    {
      path: "/distribution/money/withdrawal",
      name: "distributionMoneyWithdrawal",
      component: r =>
        require.ensure(
          [],
          () => r(require("publicPage/market/distribution/money/withdrawal")),
          "distribution"
        )
    }
  ]
};

const zeroYuanR = {
  path: "/zeroYuan",
  name: "zeroYuan",
  component: r =>
    require.ensure([], () => r(require("comMain/AsideT")), "AsideT"),
  meta: {
    name: "zeroYuan",
    childrenSoft: true,
    children: [
      {
        title: "零元抽奖",
        idx: "1",
        children: [
          {
            rtName: "zeroYuanList",
            rtTo: "/zeroYuan/list",
            rtTitle: "抽奖列表"
          }
        ]
      }
    ]
  },
  redirect: "/zeroYuan/list",
  children: [
    {
      path: "/zeroYuan/list",
      name: "zeroYuanList",
      component: r =>
        require.ensure(
          [],
          () => r(require("publicPage/market/zeroYuan/list")),
          "zeroYuan"
        )
    }
  ]
};

const couponsR = {
  path: "/coupons",
  name: "coupons",
  component: r =>
    require.ensure([], () => r(require("comMain/AsideT")), "AsideT"),
  meta: {
    name: "coupons",
    childrenSoft: true,
    children: [
      {
        title: "优惠劵",
        idx: "1",
        children: [
          {
            rtName: "couponList",
            rtTo: "/coupons/list",
            rtTitle: "优惠劵列表"
          }
        ]
      }
    ]
  },
  redirect: "/coupons/list",
  children: [
    {
      path: "/coupons/list",
      name: "couponList",
      component: r =>
        require.ensure(
          [],
          () => r(require("publicPage/market/coupon/list")),
          "coupons"
        )
    }
  ]
};

const siginR = {
  path: "/sigin",
  name: "sigin",
  component: r =>
    require.ensure([], () => r(require("comMain/AsideT")), "AsideT"),
  meta: {
    name: "sigin",
    childrenSoft: true,
    children: [
      {
        title: "签到",
        idx: "1",
        children: [
          {
            rtName: "siginList",
            rtTo: "/sigin/list",
            rtTitle: "签到活动"
          },
          {
            rtName: "siginUser",
            rtTo: "/sigin/user",
            rtTitle: "签到用户"
          }
        ]
      }
    ]
  },
  redirect: "/sigin/list",
  children: [
    {
      path: "/sigin/list",
      name: "siginList",
      component: r =>
        require.ensure(
          [],
          () => r(require("publicPage/market/sigin/activity")),
          "limit"
        )
    },
    {
      path: "/sigin/user",
      name: "siginUser",
      component: r =>
        require.ensure(
          [],
          () => r(require("publicPage/market/sigin/siginUser")),
          "limit"
        )
    }
  ]
};

const bargainR = {
  path: "/bargain",
  name: "bargain",
  component: r =>
    require.ensure([], () => r(require("comMain/AsideT")), "AsideT"),
  meta: {
    name: "bargain",
    childrenSoft: true,
    children: [
      {
        title: "砍价",
        idx: "1",
        children: [
          {
            rtName: "bargainList",
            rtTo: "/bargain/list",
            rtTitle: "砍价列表"
          }
        ]
      }
    ]
  },
  redirect: "/bargain/list",
  children: [
    {
      path: "/bargain/list",
      name: "bargainList",
      component: r =>
        require.ensure(
          [],
          () => r(require("publicPage/market/bargain/list")),
          "bargain"
        )
    }
  ]
};

const prizeR = {
  path: "/prize",
  name: "prize",
  component: r =>
    require.ensure([], () => r(require("comMain/AsideT")), "AsideT"),
  meta: {
    name: "prize",
    childrenSoft: true,
    children: [
      {
        title: "赠品库",
        idx: "1",
        children: [
          {
            rtName: "prizeList",
            rtTo: "/prize/list",
            rtTitle: "抽奖列表"
          }
        ]
      }
    ]
  },
  redirect: "/prize/list",
  children: [
    {
      path: "/prize/list",
      name: "prizeList",
      component: r =>
        require.ensure(
          [],
          () => r(require("publicPage/market/prize/list")),
          "prize"
        )
    }
  ]
};

export default {
  overviewPageR,
  decorateR,
  marketR,
  articleR,
  wifiR,
  printerSetR,
  videoR,
  smashEggR,
  spellGroupR,
  limitR,
  distributionR,
  zeroYuanR,
  couponsR,
  siginR,
  bargainR,
  prizeR
};
